import 'package:window_example/webview/webview_page2.dart';

import '../interface/content_page.dart';

class PageNavigationState {
  ContentPage? _contentPage;

  ContentPage get contentPage => _contentPage!;

  static const ContentPage _defaultContentPage = WebViewContent();

  PageNavigationState({ContentPage? contentPage = _defaultContentPage});

  PageNavigationState.content(ContentPage contentPage)
      : _contentPage = contentPage;

  PageNavigationState init() {
    return PageNavigationState.content(const WebViewContent());
  }

  PageNavigationState clone({ContentPage contentPage = _defaultContentPage}) {
    return PageNavigationState(contentPage: contentPage);
  }
}
